<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp"%>
<!-- footer edit by zcy 2011-0	5-31 -->
	<div class="clear"></div>
	<div class="footer">
		<div class="links">
			<p class="linkr fr"></p><p class="linkl fl"></p>
			<p class="linklin fl"><strong class="fl">友情链接：</strong>
			<s:iterator value="linkLists">
		     	<a href="<s:property value="linkUrl"/>"><s:property value="contentTitle"/></a>|
	     	</s:iterator>
			</p>
		</div>
		<div class="cr-line"></div>
		<div class="copyright">
			<div class="cr-logo fl"><img src="<s:property value="upload_url"/><s:property value="site.logo"/>" style="width:auto;height:56px"/></div>
			<div class="cr-info fl">
				<p class="cssa">
					<a href="<s:property value="currentMainSite.siteDomain"/>/content/2011-04/28/10000000000000000000000001238978.html" target="_blank">联系我们</a>|
					<a href="#">加入收藏</a>|
					<a href="javascript:addHome()">设为主页</a>|
					<a href="<s:property value="currentMainSite.siteDomain"/>/content/2011-05/13/10000000000000000000000008913864.html" target="_blank">合作发展</a>|
					<a href="<s:property value="currentMainSite.siteDomain"/>/content/2011-08/19/ff80808131dcfc230131dfaa3fec02f1.html" target="_blank">网站地图</a>|
					<a href="http://124.17.10.11:6888/inside/">协同办公</a>
				<p>
				<p>版权所有：中国个体劳动者协会 地址：北京市西城区直门内大街172号3号楼5层 邮政编码：100035</p>
				<p>京ICP备11017582号 技术支持：中国软件与技术服务股份有限公司</p>
			</div>
		</div>
	</div>
	
	<script>
	
	
	function addHome()
	{
	    if (window.sidebar) 
	    {
	        try {
	            netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
	        }
	        catch (e)
	        {
	            alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为true"); 
	        } 
	
	        var prefs =  Components.classes["@mozilla.org/preferences-service;1"].getService( Components.interfaces.nsIPrefBranch );
	        prefs.setCharPref("browser.startup.homepage",getRootPath());
	    }
	    else if(document.all)
	    {
	        document.body.style.behavior="url(#default#homepage)";
	        document.body.setHomePage(getRootPath());
	    }
	    else
	    {
	        ;
	    }
	}
	function getRootPath() {
		var location = document.location;
		if ("file:" == location.protocol) {
			var str = location.toString();
			return str.replace(str.split("/").reverse()[0], "");
		}
		var pathName = location.pathname.split("/");
		var s="";
	    for(var i=1;i<pathName.length;i++){
	       s+=  "/"+pathName[i];
	    }
		return location.protocol + "//" + location.host+s;
	
	}
	</script>